package br.fagoc.easyds.cell;

import com.mxgraph.model.mxCell;
import com.mxgraph.model.mxICell;

public class QueueCell {
	private mxCell graphCell;
	private QueueCell parentCell;
	private QueueCell childCell;
	private mxICell childEdge;
	
	public QueueCell(mxCell graphCell) {
		this.graphCell = graphCell;
	}
	
	public void removeChild(){
		this.childCell = null;
		this.childEdge = null;
	}
	
	public void removeParent() {
		this.parentCell = null;
	}
	
	public boolean hasParent() {
		if(parentCell == null)
			return false;
		else
			return true;
	}
	
	public boolean hasChild(){
		if(childCell == null)
			return false;
		else
			return true;
	}
	
	public mxCell getGraphCell() {
		return graphCell;
	}
	public void setGraphCell(mxCell graphCell) {
		this.graphCell = graphCell;
	}
	public QueueCell getParentCell() {
		return parentCell;
	}
	public void setParentCell(QueueCell parentCell) {
		this.parentCell = parentCell;
	}
	public QueueCell getChildCell() {
		return childCell;
	}
	public void setChildCell(QueueCell childCell, mxICell childEdge) {
		this.childCell = childCell;
		this.childEdge = childEdge;
	}
	public mxICell getChildEdge() {
		return childEdge;
	}
	public void setChildEdge(mxICell childEdge) {
		this.childEdge = childEdge;
	}
}
